package com.pet.platform.service;

import com.pet.platform.common.PageResult;
import com.pet.platform.dto.PostDTO;
import com.pet.platform.dto.PostQueryDTO;
import com.pet.platform.entity.Post;

public interface PostService {
    Post findById(Long id);
    
    PageResult<PostDTO> findPage(PostQueryDTO queryDTO);
    
    void create(PostDTO postDTO);
    
    void update(Long id, PostDTO postDTO);
    
    void delete(Long id);
    
    void like(Long id);
    
    void unlike(Long id);
} 